Skip to content

Conversation

jozala
Copy link
Contributor

@jozala jozala commented Aug 27, 2025

This is to ensure consistent test execution.
It also supports clusters before 7.6 where the setting key was processors instead of node.processors.

This is continuation of #133204. That approach failed when running BwC for clusters < 7.6.0.

Related to #130612

This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node
 .processors`
@jozala jozala requested a review from a team as a code owner August 27, 2025 09:22
@jozala jozala added :Delivery/Build Build or test infrastructure auto-backport Automatically create backport pull requests when merged v9.2.0 v9.1.4 v9.0.7 v8.18.7 v8.19.4 labels Aug 27, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Aug 27, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Comment on lines +1390 to +1398
// Limit the number of allocated processors for all nodes in the cluster by default.
// This is to ensure that the tests run consistently across different environments.
String processorCount = shouldConfigureTestClustersWithOneProcessor() ? "1" : "2";
if (getVersion().onOrAfter("7.6.0")) {
baseConfig.put("node.processors", processorCount);
} else {
baseConfig.put("processors", processorCount);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is moved from InternalTestClustersPlugin.java.
Here we have an access to the version of the node and it seems to be a correct place to set default values.

@jozala
Copy link
Contributor Author

jozala commented Sep 19, 2025

The tests are currently failing because of the 0.0.0 version in bcUpgradeTest task. This will be addressed in #134584.

@jozala jozala merged commit fa692ab into elastic:main Oct 3, 2025
34 checks passed
jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 3, 2025
This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 3, 2025
This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 3, 2025
This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19
9.1
9.0
8.18

jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 3, 2025
This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 3, 2025
This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`

(cherry picked from commit fa692ab)
@jozala
Copy link
Contributor Author

jozala commented Oct 3, 2025

💚 All backports created successfully

Status Branch Result
9.2

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Oct 3, 2025
…35911)

This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
elasticsearchmachine pushed a commit that referenced this pull request Oct 3, 2025
…35913)

This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
elasticsearchmachine pushed a commit that referenced this pull request Oct 3, 2025
…35914)

This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`

(cherry picked from commit fa692ab)
elasticsearchmachine pushed a commit that referenced this pull request Oct 3, 2025
…35910)

This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
elasticsearchmachine pushed a commit that referenced this pull request Oct 3, 2025
…35912)

This is to ensure consistent test execution. It also supports clusters
 before 7.6 where the setting key was `processors` instead of `node.processors`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.18.9 v8.19.6 v9.0.9 v9.1.6 v9.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants